package cn.darkhorse.common.constant;

public class CommonConstant {
    public static String COLON=":";
    public static Integer NO = 0;
    public static Integer YES = 1;
    /**
     * 是否删除: 0表示正常
     */
    public static Integer IS_DELETE_NO = 0;
    /**
     * 是否删除：1 表示删除
     */
    public static Integer IS_DELETE_YES = 1;
    /**
     * 正常
     */
    public static final int NORMAL = 0;
    /**
     * 停用
     */
    public static final int DISABLE = 1;

    /**
     * 备件类型
     */
    public static final String DEVICE_SPARE_TYPE="DST";

    /**
     * 备件
     */
    public static final String DEVICE_SPARE_PARTS_TYPE="DSPT";

    /**
     * 设备类型
     */
    public static final String DEVICE_TYPE="DT";

    //备件出入库类型  0：入库  1：出库
    public static final String RK="0";
    public static final String CK="1";

    public static final String DAICHUKU="0";

    /**
     * 待审
     */
    public static  final  Integer AUDIT_STATUS_PENDING_TRIAL=0;
    /**
     * 已审
     */
    public static  final  Integer AUDIT_STATUS_REVIEWED=1;
    /**
     * 审核中
     */
    public static  final  Integer AUDIT_STATUS_UNDER_REVIEWED=2;


    /**
     * 备件申请记录
     * 手动添加
     */
    public static final Integer SPARE_APPLY_TYPE_ADD=0;
    /**
     * 备件申请记录
     * 维修单
     */
    public static final Integer SPARE_APPLY_TYPE_REPAIR=1;
    /**
     * 备件申请记录
     * 保养单
     */
    public static final Integer SPARE_APPLY_TYPE_UPKEEP=2;

    /**
     * 排序方式
     */
    public static final String ORDER_TYPE_ASC = "asc";
    public static final String ORDER_TYPE_DESC = "desc";
    /**
     *不申请备件
     */
    public static final Integer NON_APPLY_SPARE_STASUS=0;

    /**
     *申请备件
     */
    public static final Integer APPLY_SPARE_STASUS=1;

    //维修状态（0：待派单1：待接单2：维修中3：已完成）
    /**
     * 待派单
     */
    public static final Integer REPAIR_STATUS_WAIT_DISPATCH=0;
    /**
     * 待接单
     */
    public static final Integer REPAIR_STATUS_WAIT_RECEIVE=1;
    /**
     * 维修中
     */
    public static final Integer REPAIR_STATUS_UNDER_REPAIR=2;
    /**
     * 已完成
     */
    public static final Integer REPAIR_STATUS_COMPLETE=3;


    /**
     * 稼动率查询类型: 按日查询
     */
    public static final Integer UTILIZATION_QUERY_TYPE_DAY = 0;
    /**
     * 稼动率查询类型: 按月查询
     */
    public static final Integer UTILIZATION_QUERY_TYPE_MONTH = 1;

    /**
     * 作业阶段   5动火完成确认（动火完成）
     * 动火作业进程: 0动火申请 （待审核）
     */
    public static Integer JOB_FIRE_PHASE_APPLY = 0;

    /**
     * 动火作业进程: 1提交审核（审核中）
     */
    public static Integer JOB_FIRE_PHASE_AUDIT = 1;
    /**
     *  动火作业进程: 2动火审核（已审核）
     */
    public static Integer JOB_FIRE_PHASE_APPROVE = 2;
    /**
     * 动火作业进程: 3动火前确认（动火确认）
     */
    public static Integer JOB_FIRE_PHASE_BEFORE = 3;
    /**
     * 动火作业进程: 4动火情况确认（动火中）
     */
    public static Integer JOB_FIRE_PHASE_WORKING = 4;
    /**
     * 动火作业进程: 5动火完成确认（动火完成）
     */
    public static Integer JOB_FIRE_PHASE_AFTER = 5;
    /**
     * 动火审核: 不批准动火
     */
    public static Integer JOB_FIRE_AUDIT_NO = 0;

    /**
     * 动火审核: 批准动火
     */
    public static Integer JOB_FIRE_AUDIT_YES = 1;

    /**
     * 动火作业终止标记 0正常 1异常 2终止
     */
    public static Integer JOB_FIRE_WORKING_STATUS_NORMAL = 0;
    public static Integer JOB_FIRE_WORKING_STATUS_ABNORMAL = 1;
    public static Integer JOB_FIRE_WORKING_STATUS_TERMINATION = 2;

    /**
     * 是否是采集设备
     */
    public static Integer MES_DEVICE_ACQUISITION_YES = 1;

    /**
     * 设备状态：闲置
     */
    public static Integer MES_DEVICE_STATUS_NO = 0;
    /**
     * 设备状态：启用
     */
    public static Integer MES_DEVICE_STATUS_YES = 1;


    public static Integer CAPACITY_DATA_TYPE_INIT = 0;
    public static Integer CAPACITY_DATA_TYPE_MODIFY = 1;
    /**
     * 日检
     */
    public static Integer SPOT_CHECKUSE_DAY = 0;
    /**
     * 周检
     */
    public static Integer SPOT_CHECKUSE_WEEK = 1;

    /**
     * 电量统计查询类型
     */
    public static String  METER_REPORT_QUERY_TYPE_DAY = "日期查询";
    public static String  METER_REPORT_QUERY_TYPE_MONTH = "月度查询";
    public static String  METER_REPORT_QUERY_TYPE_YEAR = "年度查询";

    /**
     * 电表类型
     */
    public static String METER_TYPE_MAIN = "0";
    public static String METER_TYPE_SUB = "1";

    //排产类型
    public static Integer GONGYI_PAICHAN = 0;
    public static Integer SHUNXU_PAICHAN = 1;

    /**
     * 消息已读未读
     */
    public static Integer MSG_READ = 1;
    public static Integer MSG_UNREAD = 0;

    //待检提醒
    public static Integer SPOT_NOTICE_WAIT=0;
    //超时提醒
    public static Integer SPOT_NOTICE_TIMEOUT=1;
    //异常提醒
    public static Integer SPOT_NOTICE_ANOMALOUS=2;

    /**
     * 间歇性故障
     */
    public static long REPAIR_MALFUNCTION_INETERMISSION=0;
    /**
     * 永久性故障
     */
    public static long REPAIR_MALFUNCTION_PERMANMENT=1;

    /**
     * 开关量
     */
    public static Integer PARAMETER_TYPE_SWITCH=0;
    /**
     * 参数值
     */
    public static Integer PARAMETER_TYPE_VALUE=1;
    /**
     * 报警类型
     * 0/fasle 1/true 2/变化 3/限值报警 4/连续报警
     */
    public static Integer ALARM_TYPE_SWITCH_FALSE=0;
    public static Integer ALARM_TYPE_SWITCH_TRUE=1;
    public static Integer ALARM_TYPE_SWITCH_CHANGE=2;
    public static Integer ALARM_TYPE_VALUE_LIMIT=3;
    public static Integer ALARM_TYPE_VALUE_CONTINUITY=4;

    /**
     * 报警频率 0 实时报警1间隔报警
     */
    public static Integer ALARM_FREQUENCY_IMMEDIATE=0;
    public static Integer ALARM_FREQUENCY_INTERVAL=1;

    public static String ALARM_LIST="alarm:list";
    /**
     * 限值类型
     * 0小于1大于
     */
    public static Integer ALARM_LIMIT_TYPE_LESS=0;
    public static Integer ALARM_LIMIT_TYPE_MORE=1;
    /**
     * 变化类型
     * 0：true--false
     * 1:false--true
     */
    public static Integer ALARM_CHANGE_TYPE_TRUE_TO_FALSE=0;
    public static Integer ALARM_CHANGE_TYPE_FALSE_TO_TRUE=1;

    /**
     * 设备运行状态（0：设备运行/设备启动1：设备异常2：设备掉线3：设备暂停）
     */
    public static Integer DEVICE_RUNNING_STATUS_NORMAL=0;
    public static Integer DEVICE_RUNNING_STATUS_ALARN=1;
    public static Integer DEVICE_RUNNING_STATUS_OFFLINE=2;
    public static Integer DEVICE_RUNNING_STATUS_PAUSED=3;
    /**
     * 日期类型 0：日 1：月 2 年
     */
    public static Integer DATA_TYPE_DAY=0;
    public static Integer DATA_TYPE_MONTH=1;
    public static Integer DATA_TYPE_YEAR=2;

    /**
     * 数据库类型
     */
    public static String DB_TYPE_MYSQL = "mysql";
    public static String DB_TYPE_SQLSERVER = "sqlserver";



    /**
     * 表示数据审核状态
     */
    public static String FIELDNAME_AUDIT_STATUS = "audit_status";

    /**
     * 维修单验证类型
     */
    public static String REPAIR_VERIFY_SELF= "1"; //自己
    public static String REPAIR_VERIFY_DESIGNATE="2"; //指定

    /**
     * 设备标签
     */
    public static Integer DEVICE_TAG_COMMON= 0; //一般设备
    public static Integer DEVICE_TAG_FOCUS= 1; //重点设备
    public static Integer DEVICE_TAG_OTHER= 2; //其他设备
    public static Integer DEVICE_TAG_IOT_CHILD= 5; //其他设备


    /**
     * 维修单审核状态 （0：待审1：待派工2：待维修3：维修中4:待验证5：已完成6：已驳回）
     */
    public static  final  Integer REPAIR_AUDIT_STATUS_PENDING_TRIAL=0;
    public static  final  Integer REPAIR_AUDIT_STATUS_PENDING_DISPATCH=1;
    public static  final  Integer REPAIR_AUDIT_STATUS_PENDING_REPAIR=2;
    public static  final  Integer REPAIR_AUDIT_STATUS_REPAIRING=3;
    public static  final  Integer REPAIR_AUDIT_STATUS_PENDING_VERIFY=4;
    public static  final  Integer REPAIR_AUDIT_STATUS_FINISH=5;
    public static  final  Integer REPAIR_AUDIT_STATUS_OVERRULE=6;


    /**
     * 记录方式,1单选2多选3数字4文本
     */
    public static Integer RECORD_TYPE_SINGLE=1;
    public static Integer RECORD_TYPE_MULTI=2;
    public static Integer RECORD_TYPE_NUMBER=3;
    public static Integer RECORD_TYPE_TEXT=4;

    /**
     * 外委单号前缀
     */
    public static String COMMISSION_INFO_ORDER_NUMBER_PREFIX="W";

    /**
     * 消息类型
     */
    public static String MESSAGE_TYPE_NOTICE = "NOTICE";  // 通知 NOTICE
    public static String MESSAGE_TYPE_ALARM = "ALARM";  // 报警 ALARM

    /**
     * 消息级别
     */
    public static String MESSAGE_LEVEL_NORMAL = "A"; //普通
    public static String MESSAGE_LEVEL_WARNING = "B"; //警告
    public static String MESSAGE_LEVEL_URGENT = "C"; //紧急

    /**
     * 消息状态
     */
    public static String MESSAGE_STATUS_UNREAD = "0"; //普通
    public static String MESSAGE_STATUS_READ = "1"; //警告

    /**
     * 消息来源
     */
    public static Integer MESSAGE_FROM_ALARM = 0; //设备报警
    public static Integer MESSAGE_FROM_LINKAGE_ALARM = 1; //联动报警
    public static Integer MESSAGE_FROM_REPAIR_APPROVAL = 2; //维修单审核
    public static Integer MESSAGE_FROM_REPAIR_DISPATCH = 3; //维修派工
    public static Integer MESSAGE_FROM_FEEDBACK_AUDIT = 4; //报工审核
    public static Integer MESSAGE_FROM_OTHER_REPAIR_APPROVAL = 5; //
    public static Integer MESSAGE_FROM_OTHER_REPAIR_DISPATCH = 6; //维修派工
    public static Integer MESSAGE_FROM_PRO_PENDING_CHECK = 7; //待检任务
    public static Integer MESSAGE_FROM_DEVICE_PENDING_CHECK = 8; //设备临检
    public static Integer MESSAGE_FROM_DEVICE_CHECK_TIME_OUT = 9; //设备超期
    public static Integer MESSAGE_RISK_OVERRULE = 10; //隐患驳回
    public static Integer MESSAGE_DISH_PUBLISH = 11; //发布餐品
    public static Integer MESSAGE_DISH_DELETE = 12; //删除餐品


}
